/* INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=2805
  Verdict: Accepted
*/
import java.math.*;
import java.util.*;
import java.io.*;
 
public class Main {
 
  static BufferedReader in;
 
  public static void main(String[] args) throws Exception {
    in = new BufferedReader(new InputStreamReader(System.in));
    String s = in.readLine();
    int ls = s.length();
    BigInteger ci = new BigInteger("0");
    Boolean f = false;
    for (int i=0; i<ls; i++) {
        if ((Integer.valueOf(s.charAt(i))>=48) && (Integer.valueOf(s.charAt(i))<=57)) {
            ci = ci.multiply(BigInteger.valueOf(10));
            ci = ci.add(BigInteger.valueOf(s.charAt(i)-48));
            f = true;
        } else {
            if (f) {
                System.out.print(ci.toString(2));
                ci = BigInteger.valueOf(0);
                f = false;
            }
            System.out.print(s.charAt(i));
        }
    }
    if (f) System.out.print(ci.toString(2));
 
   }
 
} 